import request from '@/utils/request'

// 获取验证码
export const getVerificationCodeAPI = (clientToken) => {
  return request({
    url: `/user-service/user/imageCode/${clientToken}`,
    responseType: 'blob' // 表明返回服务器返回的数据类型
  })
}

// 登录
export function loginAPI(data) {
  return request({
    url: '/user-service/user/login',
    method: 'POST',
    data
  })
}

export function getInfoAPI(token) {

}

export function logoutAPI() {

}

